package com.yy.shardingsphere.service;

import com.yy.shardingsphere.vo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yangyao
 * @Description: UserService
 * @date 2018/11/1 15:59
 */
public interface UserService {

    /**
     * 保存用户信息
     * @param user
     */
    public void save(User user);

    /**
     * 根据用户id查询user信息
     * @param userId
     * @return
     */
    public User getUserByUserId(@Param("userId") Long userId);

    /**
     * 查询所有User信息
     * @return
     */
    public List<User> getAllUsers();
}
